using System;
using System.Collections.Generic;
using System.Text;

namespace FriendsNearby.Services.Tests
{
    class ServiceProvider : IServiceProvider
    {
        Dictionary<Type, object> services = new Dictionary<Type, object>();

        public void AddService(Type type, object service)
        {
            services.Add(type, service);
        }

        #region IServiceProvider Members

        public object GetService(Type serviceType)
        {
            return services[serviceType];
        }

        #endregion
    }
}
